<?php
	
?>
<script type="text/javascript">
$(document).ready(function(){
	// functions
	<?php require('library/js/validator/functions.js');?>
	
	// VALIDATOR
	// tandan
	<?php require('library/js/validator/form.input.label_tandan.js');?>
	
	// validation config
	<?php require('library/js/validator/config.polinasi.js');?>	
	
	$('input#tgl_persilangan').datePicker();
});

</script>
<div class="title">Polinasi</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirm_edit">
    <ul>
    	<li class="header"><span>Persilangan</span></li>
        <li><span>
            <label>Tanggal Persilangan:</label>
            <input type="text" id="tgl_persilangan" name="tgl_persilangan" value="<?=$data['tgl_persilangan'];?>" readonly="readonly" class="disabled"/>
        </span></li>
		<li><span>
            <label>Sumber polen:</label>
			<select name="sumber_polen" id="sumber_polen">
				<option value="i" <?=$data['sumber_polen']=='i'?'selected="selected"':'';?>>Internal</option>
				<option value="e" <?=$data['sumber_polen']=='e'?'selected="selected"':'';?>>Eksternal</option>
			</select>
        </span></li>
        <li><span>
            <label>No Individu:</label>
            <input type="text" id="no_individu" name="no_individu" value="<?=$data['no_individu'];?>"/>
        </span></li>
        <li><span>
            <label>No Tandan Betina:</label>
            <input type="text" id="no_tandan_betina" name="no_tandan_betina" value="<?=$data['no_tandan_betina'];?>"/>
        </span></li>
        <li><span>
            <label>Label Tandan:</label>
            <input type="text" id="label_tandan" name="label_tandan" value="<?=$data['label_tandan'];?>"/>
        </span></li>
    </ul>
	<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
		</span></li>
	</ul>
</form>